import java.util.Scanner;

public class HomeWork07_08{
    static void reverseInteger(int itger){
        while(itger != 0){
            System.out.print(itger % 10);
            itger /= 10;
        }
    }
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        System.out.print("please enter an integer: ");
        int itger = scan.nextInt();
        
        reverseInteger(itger);
    }
}